home *** CD-ROM | disk | FTP | other *** search
/ Aminet 30 / Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso / Aminet / dev / c / EGCSWOSAlib.lha / src.lha / FreeIEvents.c < prev    next >
C/C++ Source or Header  |  1999-01-04  |  509b  |  28 lines

  1. /*
  2. ** amiga.lib for vbcc-PowerOpen/WarpOS
  3. **
  4. ** FreeIEvents()
  5. **
  6. ** V0.2 19-Apr-98 phx
  7. **      replaced <clib/powerpc/powerpc_protos.h> by <clib/powerpc_protos.h>
  8. **      deleted 'volatile'
  9. ** V0.1 15-Mar-98 phx
  10. **      created
  11. */
  12.  
  13. #include <devices/inputevent.h>
  14. #include <proto/exec.h>
  15. #include <powerpc/powerpc_protos.h>
  16.  
  17. void FreeIEvents(struct InputEvent *events)
  18. {
  19.   struct InputEvent *next;
  20.  
  21.   while(events!=NULL)
  22.   {
  23.     next=events->ie_NextEvent;
  24.     FreeVecPPC((APTR)events);
  25.     events=next;
  26.   }
  27. }
  28.